// Version 1.2
// ConstantSpeed.pde
// -*- mode: C++ -*-
//
// Shows how to run AccelStepper in the simplest,
// fixed speed mode with no accelerations
// Requires the AFMotor library (https://github.com/adafruit/Adafruit-Motor-Shield-library)
// And AccelStepper with AFMotor support (https://github.com/adafruit/AccelStepper)
// Public domain!

#include "WProgram.h"
#include "AFMotor.h"
//#include "AccelStepper.h"

AF_Stepper motor(200,2);

int i = 0;
int s = 0;



extern "C" void __cxa_pure_virtual() { while (1); }
	
void setup() { 
	Serial.begin(9600);           // set up Serial library at 9600 bps
  Serial.println("Stepper test!");

  motor.setSpeed(5);  // 10 rpm                  
  }

void loop() {
  motor.step(s, FORWARD, SINGLE); 
  while (i < 10,i++)
  {
<<<<<<< .mine
   delay(10);
   //delay(	10);	//Branche 1
=======
   delay(5);
   delay(	5);	//Branche 1
   delay(5);	//Branche 1 V2
>>>>>>> .r6
  }
	i = 0;
	s++;
	if (s >= 200)
	{
		s = 1;
	}
	motor.setSpeed(s);
	Serial.println(s);
}

